package com.fs.cv.service;

import com.fs.cv.pojo.pojodao.Course;
import com.fs.cv.pojo.pojodao.Teacher;
import com.fs.cv.pojo.pojoview.TeacherInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TeacherInfoService {


    //查询所有的信息
    PageInfo<TeacherInfo> queryAllTeacher(Integer userId,Integer currentPage, Integer pageSize);

    //通过courseId查询该课程信息
    Course queryCourseInfoByCourseId(Integer courseId);


    //通过teacherId找到该教师信息
    Teacher queryTeacherInfoByTeacherId(Integer teacherId);

    //查询本专业剩余未选课程
    List<Course> querySurplusCourse(Integer userId);

    //修改老师信息
    Integer editTeacherInfo(Teacher teacher,Integer courseId);

    /**
     * 删除教师
     * @param id 教师id
     * @return 是否成功
     */
    boolean deleteTeacher(Integer id);



    /*//模糊查询
    List<TeacherInfo> queryPartTeacher(String str);
*/



   /* //修改老师的信息
    void updateTeacher(TeacherInfo teacherView);*/
}
